<h1>Podešavanja</h1>

<?= $this->Form->create('Setting', array('url' => '/admin')) ?>

    <? foreach($data as $k=>$s): ?>
        <?= $this->Form->hidden("{$k}.id", array('value' => $s['Setting']['id'])) ?>
        
        <?= $this->Form->label("{$k}.value", $s['Setting']['name'].":") ?>
        <?= $this->Form->text("{$k}.value", array('value' => $s['Setting']['value'], 'class'=>'large')) ?>
    <? endforeach ?>
    
    <?= $this->Form->submit('Sačuvaj') ?>
<?= $this->Form->end() ?>